<template>
  <div>
    <h1>我是哥哥</h1>
    <p>{{ count }}</p>
    <p>我是哥哥我开{{ car }}</p>
    <button @click="add">累加</button>
    <button @click="aa">111</button>
  </div>
</template>

<script>
export default {
  name: "Gege",
  data() {
    return {
      count: 0,
      car: "迈巴赫",
    };
  },
  mounted() {},
  methods: {
    add() {
      this.count++;
    },
    aa() {
      this.$bus.$emit("car", this.car);
    },
  },
};
</script>

<style>
</style>